From 429f809b71caba206883758d967ca292b5981b04 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Florian=20M=C3=BCllner?= Date: Tue, 29 Mar 2011 13:32:53 +0200 Subject: [PATCH] search-display: Fix getDragActorSource()/getDragActor() The 'icon' property in search results' meta info has been replaced by a 'createIcon' property, adjust to this change. https://bugzilla.gnome.org/show_bug.cgi?id=645990 --- js/ui/searchDisplay.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/ui/searchDisplay.js b/js/ui/searchDisplay.js index f3d463a94..ffe9fa482 100644 --- a/js/ui/searchDisplay.js +++ b/js/ui/searchDisplay.js @@ -77,11 +77,12 @@ SearchResult.prototype = { }, getDragActorSource: function() { - return this.metaInfo['icon']; + // not exactly right, but alignment problems are hard to notice + return this._content; }, getDragActor: function(stageX, stageY) { - return new Clutter.Clone({ source: this.metaInfo['icon'] }); + return this.metaInfo['createIcon'](Main.overview.dash.iconSize); }, shellWorkspaceLaunch: function(params) { -- 2.39.5